<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">

	</head>
	<body>
		<legend>添加商品类型属性</legend>
		<form action="" method="post">
		<table class="table table-bordered table-hover">
			<tr>
				<th style="width: 30%;text-align: right;">属性名称：</th>
				<td>
					<input type="text" name='trname' value="{{$oldData['trname']}}"/>
				</td> 
			</tr>			
			<tr>
				<th style="text-align: right">属性类别：</th>
				<td>
					<label><input type="radio" value="0" name="class" 
						<?php if($oldData['class']==0):?> checked <?php endif ?>
						/>&nbsp;属性</label>
					&nbsp;&nbsp;
					<label><input type="radio" value="1" name="class"
						<?php if($oldData['class']==1):?> checked <?php endif ?>
						/>&nbsp;规格</label>
				</td>
			</tr>
			<tr>
				<th style="text-align: right">
					属性值(多个值用 竖线 | 分隔)：
				</th>
				<td>
					<!--以竖线形式显示旧数据-->
					<textarea name="value" cols="60" rows="4">{{$oldData['value']}}</textarea>
				</td>
			</tr>
			<tr>
				<td colspan='5' style="text-align: left">
					<input type="submit" class="btn btn-primary" value="添加属性" />
				</td>
			</tr>
			<!--用于save查询-->
			<input type="hidden" name="trid" value="{{$_GET['trid']}}"/>
		</table>
		</form>
	</body>
</html>
